Functions to parse arguments from user. More...
Go to the source code of this file.
Macros | |
| #define | FREE_INTS(p) free_ints(p); p=NULL; |
| Frees the memory allocated by strings_to_ints and sets the pointer to NULL. More... | |
Functions | |
| int * | strings_to_ints (int size, char **int_strings) |
| Given an 'array' of int in string format, this function returns a list of intgers. More... | |
| void | free_ints (int *p) |
| Frees the memory allocated by strings_to_ints. More... | |
Functions to parse arguments from user.
| #define FREE_INTS | ( | p | ) | free_ints(p); p=NULL; |
Frees the memory allocated by strings_to_ints and sets the pointer to NULL.
| int | *p - memory to free |
| void free_ints | ( | int * | p | ) |
Frees the memory allocated by strings_to_ints.
| int | *p - memory to free |
| int* strings_to_ints | ( | int | size, |
| char ** | int_strings | ||
| ) |
Given an 'array' of int in string format, this function returns a list of intgers.
| int | size - number of arguments in |
| int | int_strings - integers in string format |
Pointer to int (an 'array')
1.8.6